home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-08-31 | 2.0 KB | 40 lines | [TEXT/TPAS] |
- A QUICK GUIDE TO RESEDIT
- (not intended as a substitute for the ResEdit instructions)
-
- Macintosh applications rely on resources for any information that isn't
- hard coded in the program itself. For example, the dialog boxes that an
- application uses are usually stored as resources, so that they can be
- changed easily, without recompiling the program. A resource is identified
- by a type, which is four characters long, an ID, which is an integer, and a
- name, which is a string. Note, however, that there can only be one
- resource with a given type and ID.
-
- ResEdit is a tool for moving,copying,deleting, and altering resources. Once
- it is launched, windows will appear, one for each volume inserted. To eject
- a disk, click in the close box for its window. These window operate
- in a similar way to the usual "Open" dialog in most applications. To open a
- file or folder, double click. When a file is opened, a window opens listing
- all the types of resources contained in that file. By doubleclicking on a
- resource type, a window is opened containing all the different resources
- of that type.
-
- To change information about a resource, such as its name or ID, use the Get
- Info command.
-
- To copy resources, use the standard Copy-Paste commands.
-
- So, open the file "DHDR's", and your Turbo application file. You should find
- DHDR's called PasXCMD and PasXFCN in the file "DHDR's". Copy each of these
- and paste it into the Turbo file. That's it.
-
- To use XCMD's and XFCN's, copy the XCMD or XFCN resource from the file
- that Turbo creates, which will be named after the XCMD, to the appropriate
- stack.
-
- Remember that all XCMD's and XFCN's are initially given an ID of 300. That
- would normally mean that you couldn't have more than one in a given stack.
- The solution is to use the Get Info command in ResEdit to change the ID to
- a unique value. The Get Info command will display the Name, ID and type of
- the resource, along with a lot of other information. The name and ID can be
- change, using the standard mouse-dragging and typing technique.
-